import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'

//实时缴款撤销申请报文录入查询
export const realTimePaymentRevokeEntryQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentRevokeManagement/RealTimePaymentRevokeEntry/search`,
}

//实时缴款撤销申请报文录入查询明细
export function realTimePaymentRevokeEntryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentRevokeManagement/RealTimePaymentRevokeEntry/detail`,
    method: 'get',
    params:{oriId:data.oriId}
  })
}

//实时缴款撤销申请报文录入提交
export function realTimePaymentRevokeEntrySave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentRevokeManagement/RealTimePaymentRevokeEntry/save`,
    method: 'post',
    data:data
  })
}



//实时缴款撤销申请报文审核查询
export const realTimePaymentRevokeApproveQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentRevokeManagement/RealTimePaymentRevokeApprove/search`,
}

//实时缴款撤销申请报文审核明细
export function realTimePaymentRevokeApproveDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentRevokeManagement/RealTimePaymentRevokeApprove/detail`,
    method: 'get',
    params:{id:data.id}
  })
}


//实时缴款撤销申请报文审核通过
export function realTimePaymentRevokeApproveApprove(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentRevokeManagement/RealTimePaymentRevokeApprove/approve`,
    method: 'post',
    data:data
  })
}

//实时缴款撤销申请报文审核拒绝
export function realTimePaymentRevokeApproveReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentRevokeManagement/RealTimePaymentRevokeApprove/reject`,
    method: 'post',
    data:data
  })
}


//实时缴款撤销申请报文查询
export const realTimePaymentRevokeQueryQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentRevokeManagement/RealTimePaymentRevokeQuery/search`,
}

//实时缴款撤销申请报文查询明细
export function realTimePaymentRevokeQueryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentRevokeManagement/RealTimePaymentRevokeQuery/detail`,
    method: 'get',
    params:{id:data.id}
  })
}


//实时缴款撤销申请报文查询应答明细
export function realTimePaymentRevokeQueryDetailReply(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentRevokeManagement/RealTimePaymentRevokeQuery/detailReply`,
    method: 'get',
    params:{id:data.id}
  })
}
